<?php
/*
 * ebiz front
 *
 * Metadata Option Model
 *
 * @author allen
 *
 */

require_once '../app/core/models/BaseDao.php';
require_once '../app/core/db/DBUtil.class.php';

class MetadataOptionDao extends BaseDao
{
    private $tableName ="metadata_options";

 	public function getOptionsByMetadataId($metadataId){
 		$param = array($metadataId);
    	$sql="select * from $this->tableName where metadata_id = ? and is_delete = 0 order by `sort_order` ";
    	echo $str_sql;exit;
    	return $this->dbUtil->SelectData($sql,$param);
    }

 	public function getMetadataOptionsById($Id){
 		$param = array($Id);
    	$sql="select * from $this->tableName where id = ? and is_delete = 0 ";
    	return $this->dbUtil->SelectData($sql,$param);
    }


}